package com.netty.demo;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * Created by yan_li on 2017/1/9.
 */
public class Client01 {

    public static void main(String[] args) throws IOException, InterruptedException {
        Socket socker = new Socket("localhost", 8899);

        OutputStream outputStream = socker.getOutputStream();
        outputStream.write("abc".getBytes());
        outputStream.flush();
        Thread.sleep(20000);
        System.out.println("发送完毕");
    }
}
